package cn.ctodb.mall.goods.service.dto;


import java.io.Serializable;
import java.util.Objects;
import cn.ctodb.mall.goods.domain.enumeration.IsCheck;

/**
 * A DTO for the GoodsType entity.
 */
public class GoodsTypeDTO implements Serializable {

    private Long id;

    private String catName;

    private IsCheck enabled;

    private String attrGroup;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getCatName() {
        return catName;
    }

    public void setCatName(String catName) {
        this.catName = catName;
    }
    public IsCheck getEnabled() {
        return enabled;
    }

    public void setEnabled(IsCheck enabled) {
        this.enabled = enabled;
    }
    public String getAttrGroup() {
        return attrGroup;
    }

    public void setAttrGroup(String attrGroup) {
        this.attrGroup = attrGroup;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        GoodsTypeDTO goodsTypeDTO = (GoodsTypeDTO) o;

        if ( ! Objects.equals(id, goodsTypeDTO.id)) { return false; }

        return true;
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(id);
    }

    @Override
    public String toString() {
        return "GoodsTypeDTO{" +
            "id=" + id +
            ", catName='" + catName + "'" +
            ", enabled='" + enabled + "'" +
            ", attrGroup='" + attrGroup + "'" +
            '}';
    }
}
